package com.yykj.tencent.im.client.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class QueryMsgForm {

    @ApiModelProperty(value = "0:单聊消息,1:群组消息")
    private int messsageType;

    @ApiModelProperty(value = "消息时间,yyyy-MM-dd,查当天的")
    private String msgTime;

    @ApiModelProperty(value = "0:全部,1:文本消息,2:图片,3: 音频,4:视频, 5:文件, 6:视频和图片一起查")
    private int msgType;

    @ApiModelProperty(value = "关键字, 图片 音频 视频不支持搜索")
    private String keyword;

    @ApiModelProperty(value = "当前页")
    private int pageNum = 1;

    @ApiModelProperty(value = "每页条数")
    private int pageSize = 10;

    @ApiModelProperty(value = "发送人", required = true)
    private String fromAccount;

    @ApiModelProperty(value = "接收人, 查单聊消息 必填")
    private String toAccount;

    @ApiModelProperty(value = "群ID, 查群消息 必填")
    private String groupId;

    @ApiModelProperty("运行环境")
    private String environment = "prod";

    @ApiModelProperty("开始时间,10位时间戳,为了解决 meeting 类型无法搜索之前聊天记录")
    private int startTime;

    @ApiModelProperty("群聊消息必填,非meeting时,startTime必传")
    private String groupType;
}
